# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
pkgname=py3-wheel
_pyname=wheel
pkgver=0.35.1
pkgrel=0
pkgdesc="A built-package format for Python"
url="https://github.com/pypa/wheel"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
depends="python3 py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm 0644 "$srcdir"/$_pyname-$pkgver/docs/index.rst "$pkgdir/usr/share/doc/py3-wheel"
}
sha512sums="591bf77d53a12ad153a766ce99b6a4fb0d5fbef41f35ba5d4a1f423881d1feaba5be4941e2d9e712a3d97996b442e5a50af7915f95729ead39564b0eca9e88c8  wheel-0.35.1.tar.gz"
